#include <string>
#include "../network/info.h"
using namespace std;

string interface = "eth0";
const char * local_mac = 0;
const char * gateway_mac = 0;

void set_interface(const char * _interface) {
	interface = string(_interface);
}
const char * get_interface() {
	return interface.c_str();
}
const char * get_local_hw() {
	if(local_mac == 0)
	{
		local_mac = get_local_mac(interface.c_str());
	}
	return local_mac;
}
const char * get_gateway_hw() {
	if(gateway_mac == 0) {
		gateway_mac = get_gateway_mac(interface.c_str());
	}
	return gateway_mac;
}
